package zuoye0515;

/**
 * 电脑运行测试
 * 
 * @author Y
 *
 */
public class ComputerTest {

	public static void main(String[] args) {
		MainCard test = new MainCard("华硕");
		CPU a = new AMD("Ryzen9", 4.5);// 安装CPU
		test.installCPU(a);
		Memory b = new Kingston("海盗侠", 64);// 安装储存
		test.installMemory(b);
		USB c1 = new USBCamera("佳能", 5300);// 安装USB小插件
		USB c2 = new USBFan("格力", 100);
		USB c3 = new USBHandWarmer("彩虹");
		USB c4 = new USBKeyboard("戴尔Dell");
		USB c5 = new USBMouse("戴尔Dell");
		USB c6 = new USBSolidDisk("希捷", 64);
		test.installUSB(c1);
		test.installUSB(c2);
		test.installUSB(c3);
		test.installUSB(c4);
		test.installUSB(c5);
		test.installUSB(c6);
		test.start();
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>");
		test.work();
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>");
		test.stop();
	}

}
